import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from "@tailwindcss/vite";

// https://vite.dev/config/
export default defineConfig({
  server: {
    port: 3000,
    proxy:{
      '/api':{
        target: 'http://127.0.0.1:8008',
        changeOrigin: true,
        pathRewrite: {
          '^/api':'',
        }
      }
    },
  },

  plugins: [vue(),
  tailwindcss()
  ],
})
